package com.zian.service.impl;

import com.zian.domain.po.SysOrderItem;
import com.zian.mapper.SysOrderItemMapper;
import com.zian.service.ISysOrderItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
@Service
public class SysOrderItemServiceImpl extends ServiceImpl<SysOrderItemMapper, SysOrderItem> implements ISysOrderItemService {

    @Override
    public List<SysOrderItem> getOrderItemsByOrderId(Long orderId) {
        return lambdaQuery().eq(SysOrderItem::getOrderId, orderId).list();
    }
}
